import { HttpListenerContext } from "../../../../../Core/System/Server/HttpListenerContext";

export class HttpHelper {

    public static Response(context: HttpListenerContext, response: object): void {
        context.res.statusCode = 200;
        context.res.setHeader('Content-Type', 'text/plain');
        context.res.setHeader('Access-Control-Allow-Origin', '*');
        context.res.end(JSON.stringify(response));
    }

}